<fieldset class="edit_form">
    <label for="src_type"><?php echo ucfirst($txt->getWord('source')).' '.ucfirst($txt->getWord('type')); ?></label>
    <select name="src_type" class="large" onchange="submit();">
    	<?php if($exe['type'] == 0): ?>
        <option value="0" <?php echo getIsSelectedHTML($exe['src_type'], 0); ?>>CSV</option>
		<!--<option value="1" <?php echo getIsSelectedHTML($exe['src_type'], 1); ?>>XML</option>-->
        <?php endif; ?>
        <?php if($exe['type'] == 1): ?>
        <option value="0" <?php echo getIsSelectedHTML($exe['src_type'], 0); ?>>Local Folder</option>
        <?php endif; ?>
    </select>
    <?php if($exe['type'] == 0): ?>
	<label for="src_loc_type"><?php echo ucfirst($txt->getWord('source')).' '.ucfirst($txt->getWord('location')); ?></label>
    <select name="src_loc_type" class="large" onchange="submit();">
        <option value="0" <?php echo getIsSelectedHTML($exe['src_loc_type'], 0); ?>>Text Input</option>
        <option value="1" <?php echo getIsSelectedHTML($exe['src_loc_type'], 1); ?>><?php echo ucfirst($txt->getWord('file')); ?></option>
    </select>
    <?php if($exe['src_loc_type'] == 0): ?>
    <label for="src_loc_content"><?php echo ucfirst($txt->getWord('source')); ?></label>
	<textarea name="src_loc_content" class="xxlarge" style="height:250px;"><?php echo $exe['import_content']; ?></textarea>
    <?php endif; ?>
    
    <?php if($exe['src_loc_type'] == 1): ?>
    <label for="import_file"><?php echo ucfirst($txt->getWord('source')).' '.ucfirst($txt->getWord('upload')); ?></label>
    <?php if(is_file(PRODUCT_PATH.'import/csv/'.$exe['src_loc'])): ?>
    <img class="icon command" src="<?php echo SYSICONS_URL; ?>remove_16.gif" onclick="edit_form.rem_imp_file.value=1; edit_form.submit();"  />
	<?php echo 'upload/products/import/csv/'.$exe['src_loc'].'<br />'; ?>
    <input type="hidden" id="rem_imp_file" name="rem_imp_file" value="0" />
	<?php else : ?>
	<input class="medium" type="file" name="import_file" />
    <?php endif; ?>
    <?php endif; ?>
    <?php if(($exe['src_loc_type'] == 2) || ($exe['src_loc_type'] == 3)): ?>
    <label for="src_loc"><?php echo ucfirst($txt->getWord('source')); ?></label>
    <?php 
        if($error['src_loc'])
        { echo '<span class="error">'.$error['src_loc'].'</span>'; }
    ?>
    <input name="src_loc" class="large" type="text" value="<?php echo $exe['src_loc']; ?>" maxlength="200">
    <?php endif; ?>
    <?php endif; ?>
    <?php if($exe['type'] == 1): ?>
    <label for="src_loc">
		<?php echo ucfirst($txt->getWord('source')).' '.ucfirst($txt->getWord('location')); ?>
        Relative to /upload/products/import/
    </label>
    <select name="src_loc" class="large" onchange="submit();">
    	<option value="/" <?php echo getIsSelectedHTML($exe['src_loc'], '/'); ?>>/</option>
    	<?php echo getFolderOptions($exe['src_loc']); ?>
    </select>
	<?php endif; ?>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <img class="icon command" src="<?php echo SYSICONS_URL; ?>forward_22.gif" onclick="edit_form.submit();"  />
</fieldset>